package translate;

import temp.Label;
import tree.BasicExp;
import tree.BasicStm;
import tree.CJUMP;
import tree.CONST;
import tree.EXP;

public class Ex extends Exp{
	BasicExp exp;
	
	public Ex(BasicExp e) {exp = e;}
	
	BasicStm unCx(Label t, Label f) {
		return new CJUMP(CJUMP.NE, unEx(), new CONST(0), t, f);
	}

	BasicExp unEx() {
		return exp;
	}

	BasicStm unNx() {
		return new EXP(unEx());
	}

}
